/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.test.dqsy.quiry.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.service.TreeService;
import com.jeeplus.common.utils.StringUtils;
import com.jeeplus.modules.test.dqsy.quiry.entity.FfLeftTrees;
import com.jeeplus.modules.test.dqsy.quiry.mapper.FfLeftTreesMapper;

/**
 * fdsService
 * @author 于金洋
 * @version 2020-10-04
 */
@Service
@Transactional(readOnly = true)
public class FfLeftTreesService extends TreeService<FfLeftTreesMapper, FfLeftTrees> {

	public FfLeftTrees get(String id) {
		return super.get(id);
	}

	public List<FfLeftTrees> findList(FfLeftTrees ffLeftTrees) {
		if (StringUtils.isNotBlank(ffLeftTrees.getParentIds())){
			ffLeftTrees.setParentIds(","+ffLeftTrees.getParentIds()+",");
		}
		return super.findList(ffLeftTrees);
	}

	@Transactional(readOnly = false)
	public void save(FfLeftTrees ffLeftTrees) {
		super.save(ffLeftTrees);
	}

	@Transactional(readOnly = false)
	public void delete(FfLeftTrees ffLeftTrees) {
		super.delete(ffLeftTrees);
	}

}